//
//  UIViewController+LeftBarbuttonItemControl.m
//  Doctor1.0
//
//  Created by mk on 15/7/27.
//  Copyright (c) 2015年 cocoa-mk. All rights reserved.
//

#import "UIViewController+LeftBarbuttonItemControl.h"

@implementation UIViewController (LeftBarbuttonItemControl)

- (void)addLeftBarButtonItem
{
    
    UIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"<返回" style:UIBarButtonItemStylePlain target:self action:@selector(_leftButtonAction:)];
    self.navigationItem.leftBarButtonItem = barButtonItem;
    
}

- (void)_leftButtonAction:(UIBarButtonItem *)item
{
    [self.navigationController popViewControllerAnimated:YES];
    DLog(@"asdads");
}

@end
